<form class="form-inline">
    <div class="form-group">
        <label class="sr-only" for="exampleInputPassword3"></label>
        <input type="text" id="themeTitle" name="title" value="{{$title}}" class="form-control"  placeholder="专题">
    </div>
    <button type="button" data-name="{{$title}}" onclick="themeSelect(this);"  class="btn btn-default">查询</button>
</form>
<table class="table table-striped">
    <thead>
    <tr>
        <th>专题名</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    @foreach($specials as $special)
        <tr>
            <td scope="row">{{$special->title}}</td>
            <td><a onclick="themeChecked(this);" data-id="{{$special->id}}" data-name="{{$special->title}}">选中</a></td>
        </tr>
    @endforeach
    </tbody>
</table>
<nav aria-label="Page navigation">
    <ul class="pagination">
        <li>
            <a href="#" aria-label="Previous">
                <span aria-hidden="true" data-page="1"  onclick="themeSelect(this);">首页</span>
            </a>
        </li>
        @if($specials->currentPage() > 1)
            <li>
                <span aria-hidden="true" data-page="{{$specials->currentPage() -1}}" onclick="themeSelect(this);">上一页</span>
            </li>
        @endif
        @if($specials->hasMorePages())
            <li>
                <span aria-hidden="true" data-page="{{$specials->currentPage() + 1}}" onclick="themeSelect(this);">下一页</span>
            </li>
        @endif
        <li>
            <span aria-hidden="true" data-page="{{$specials->lastPage()}}" onclick="themeSelect(this);">尾页</span>
        </li>
    </ul>
</nav>
<style type="text/css">
    li > span{
        cursor:pointer;
    }
    tr > td > a{
        cursor:pointer;
    }
</style>